﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace XhPaper
{
    public class XmlTableJkbMini : MyXmlDyHuan
    {
        public override void GetDataFromXml()
        {
            base.GetDataFromXml();
            base.GetDataFromXml();
            XmlNodeList nodeList2;
            #region 得到dywide
            nodeList2 = XmlRoot.SelectNodes("jkb");
            double w, h;
            if (nodeList2.Count > 0)
            {
                double.TryParse(nodeList2.Item(0).Attributes["w"].Value, out w);
                double.TryParse(nodeList2.Item(0).Attributes["h"].Value, out h);
                Width = w;
                Heigh = h;
            }
            #endregion
        }
        public override void GetNameTextDic(MyAutoCadObjectBase container, out Dictionary<string, MyText> m_jdqNameDic, out Dictionary<string, MyText> m_jdqTextDic)
        {
            base.GetNameTextDic(container, out m_jdqNameDic, out m_jdqTextDic);
            if (m_jdqNameDic.ContainsKey("name"))
            {
                m_jdqNameDic["name"].Text = "接口板";
                m_jdqNameDic["no"].Height = 2;
            }
        }
    }
}
